#!/bin/bash
. export_env.sh
TPWD=$PWD

#Open the hex file directory
hexfilepath=$APP_PATH/FlashROM_StackLibrary
cd $hexfilepath 

#Record the hex file name
hexfile=`ls *.hex`

#Return to the work directory
cd $TPWD

#Enter the uniflash tool directory
cd uniflash_linux_64
#Use uniflash tool to download the hex file
. withhexfiledslite.sh $hexfilepath/$hexfile

#echo $hexfilepath/$hexfile
#echo $TPWD

#Return to the work directory
cd $TPWD
